'use strict';

function router(app) {
  //app.router.post('/testSNMP', app.controller.olt.testSNMP);
  //app.router.post('/testTelnet', app.controller.olt.testTelnet);
  app.router.get('/oltrefresh', app.controller.olt.oltrefresh);
  app.router.get('/cardrefresh', app.controller.olt.cardrefresh);
  app.router.get('/refresh', app.controller.olt.refresh);
  app.router.get('/ponportsrefresh', app.controller.olt.ponrefresh);
  app.router.get('/uplinkrefresh', app.controller.olt.uplinkrefresh);
  app.router.get('/vlanrefresh', app.controller.olt.vlanrefresh);
  app.router.get('/macrefresh', app.controller.olt.macrefresh);
  app.router.get('/oltlistall', app.controller.olt.listAll);
  app.router.get('/oltsave', app.controller.olt.save);
  app.router.get('/oltreboot', app.controller.olt.reboot);
  app.router.get('/oltactive', app.controller.olt.active);
  app.router.get('/oltbuckupconfig', app.controller.olt.backup);
  app.router.post('/oltuploadfile/:id', app.controller.olt.upload);
  app.router.get('/oltinit', app.controller.olt.oltInit);
  app.router.get('/addoltmandate', app.controller.olt.addOltMandate);
  //-------------------------------------------------------------------------------------------
  app.router.get('/oltlist', app.controller.olt.list);
  app.router.post('/oltcreate', app.controller.olt.create);
  app.router.post('/editolt', app.controller.olt.edit);
  app.router.get('/oltdelete', app.controller.olt.delete);
  app.router.get('/oltsingle', app.controller.olt.oltSingle);
  app.router.get('/getoltstatus', app.controller.olt.getOltStatus);
  app.router.get('/getsystemname', app.controller.olt.getSystemName);
  app.router.get('/createrzadmin', app.controller.olt.createRZAdmin);
  app.router.get('/getversion', app.controller.olt.getOltVersion);
  app.router.get('/getinformation', app.controller.olt.getOltInformation);
  app.router.get('/gettemperature', app.controller.olt.getOltTemperature);
  app.router.get('/getcardinformation', app.controller.olt.getCardInformation);
  app.router.get('/getponportsanduplinkports', app.controller.olt.getPonPortsAndUplinkPorts);
  app.router.get('/getonuprofile', app.controller.olt.getONUProfile);
  app.router.get('/getdbaprofile', app.controller.olt.getDBAProfile);
  app.router.get('/getlineprofile', app.controller.olt.getLineProfile);
  app.router.get('/getremoteprofile', app.controller.olt.getRemoteProfile);
  app.router.get('/getoltvlan', app.controller.olt.getOltVlan);
  app.router.get('/getoltmac', app.controller.olt.getOltMac);
  app.router.get('/getoltspeedprofile', app.controller.olt.getOltSpeedProfile);
  app.router.get('/setoltacsvlan', app.controller.olt.setOltAcsVlan);
  app.router.get('/getregisteredonulist', app.controller.olt.getRegisteredONUList);
  app.router.get('/getunregisteredonulist', app.controller.olt.getUnregisteredONUList);
  app.router.get('/setregisteredonuacsurl', app.controller.olt.setRegisteredOnuAcsUrl);
}
module.exports = {
  router,
};
